package com.firmail.controller;

import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping(value = "", method = {RequestMethod.GET, RequestMethod.POST}, produces = {"application/json;charset=utf-8"})
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MockProxyController {

    @RequestMapping(value = "abc"/*, consumes = {"application/json;charset=utf-8"}*/)
    public Object get(){


        return JSONObject.parseObject("{\"hjgf\":\"987\"}");
    }
}
